<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>学员信息修改页</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
</head>
<body>
	<div class="container">
		<form action="${pageContext.request.contextPath}/studentUpdate"
			method="post">
			<input name="id" type="hidden" value="${student.id }"></input>
			<div class="form-group">
				<label for="student-name">姓名</label> <input type="text"
					class="form-control" id="student-name" name="studentName"
					placeholder="输入学员姓名" value="${student.studentName }">
			</div>
			<div class="form-group">
				<label for="idcard">身份证号</label> <input type="text"
					class="form-control" id="idcrad" name="idcard" placeholder="输入身份证 "
					value="${student.idcard}">
			</div>
			<div class="form-group">
				<label for="idcard">性别</label>
				<div class="form-check form-check-inline">
					<c:if test="${student.sex == '男' }">
						<input checked class="form-check-input" type="radio" name="sex"
							id="man" value="男">
					</c:if>
						<c:if test="${!(student.sex == '男' )}">
						<input class="form-check-input" type="radio" name="sex" id="man"
							value="男">
					</c:if>
					<label class="form-check-label" for="man">男</label>
				</div>
				<div class="form-check form-check-inline">
					<c:if test="${student.sex == '女' }">
						<input checked class="form-check-input" type="radio" name="sex"
							id="women" value="女">
					</c:if>
				<c:if test="${!(student.sex == '女')}">
						<input class="form-check-input" type="radio" name="sex"
							id="women" value="女">
					</c:if>
					<labelclass ="form-check-label" for="women">女</label>
				</div>
			</div>
			<div class="form-group">
				<label for="idcard">班级选择</label> <select class="custom-select"
					name="classId">
					<c:forEach items="${clazzList }" var="clazz">
					<c:if test="${student.classId==clazz.id }">
						<option selected value="${clazz.id }">${clazz.clazzName }</option>
					</c:if>
					<c:if test="${!(student.classId==clazz.id) }">
						<option value="${clazz.id }">${clazz.clazzName }</option>
					</c:if>
					</c:forEach>
				</select> <br></br>
				<button type="submit" class="btn btn-primary">修改</button>
		</form>
	</div>
</body>
</html>